<div class="w700">
    <div class="title"><?= $co_faq['titlemenu' . $hg] ?></div>
    <div class="news-detail">
        <ul class="questions">
            <?php
            $re_list_an = $db->select("select * from faq_item order by orderId ");
            while ($tt_list_an = $db->fetch($re_list_an)) {
                ?>
                <li>
                    <div class="question"><?= $tt_list_an['title'.$hg] ?></div>
                    <div class="answer">
                        <?= $tt_list_an['content'.$hg] ?>
                    </div>
                </li>
            <?php } ?>
        </ul>
    </div>

</div>
<div class="w260 ml20">
    <div class="title">Mẹo vặt</div>
    <ul class="s-list">
        <?php
        $i = 0;
        require_once ("library/paging.cls.php");
        $paging = new paging();
        $curpg = $_GET['var2'];
        $curpg = (isset($curpg)) ? $curpg : 1;
        $gotopage = APPLICATION_URL . "tip";
        $perpage = 3;
        $pagecount = 6;

        $sql = "select * from tip_item   ";

        $query = $db->select($sql);
        $totalrows = $db->numrows($query);

        $sql_list = "select * from tip_item  order by orderId, id desc limit " . (($curpg - 1) * $perpage) . ", " . $perpage;
        $qr_list = $db->select($sql_list);
        $num_list = $db->numrows($qr_list);

        while ($tt_list = $db->fetch($qr_list)) {
            $i++;
            if ($i != $num_list)
                $listborder = " border-bottom:#d7d7d7 1px dotted; ";
            else
                $listborder = "";
            ?>
            <li>
                <a href="<?= APPLICATION_URL ?>news-detail/<?= $tt_list['titleurl'] ?>.html">
                    <img class="image" src="<?= APPLICATION_URL ?>tip-img/<?= $tt_list['image'] ?>" alt="tip" />
                    <div class="desc">
                        <?= $tt_list['description' . $hg] ?>
                    </div>
                    <div class="clear"></div>
                </a>
            </li>
        <?php } ?>
    </ul>
</div>
